package com.cskaoyan.mall.bean.vo;

import lombok.Data;

import java.util.List;

/**
 * @name zhangguannan
 * @Date 2021-01-10 14:58
 */
@Data
public class UserManagerVO<T> {
    private int total;
    private List<T> items;

    public static <T> UserManagerVO data(List<T> items, int total) {
        UserManagerVO userManagerVO = new UserManagerVO();
        userManagerVO.setItems(items);
        userManagerVO.setTotal(total);
        return userManagerVO;
    }

}
